<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset="utf-8">
<title>拦截策略管理 | 新增拦截策略</title>
<@fm.header />
</head>
<body>
<div class="easyui-layout" style="text-align: center; height: 270px;" fit="true">
	<div region="center" border="false" style="padding: 10px; background: #fff; border: 1px solid #ccc;">
	<form id="ff" method="post">
	    <table>
	        <tr>
	            <td><label for="phoneNum">拦截号码:</label></td>
	            <td><input class="easyui-validatebox" type="text" name="phoneNum" data-options="required:false"></input></td>
	        </tr>
	        <tr>
	            <td><label for="msgContent">拦截内容:</label></td>
	            <td><textarea class="easyui-validatebox" name="msgContent" id="msgContent" style="width:200px;height:40px;" data-options="required:true,validType:'length[0,200]'"></textarea></td>
	        </tr>
	        <tr>
	            <td><label for="regexContent">正则表达式验证码:</label></td>
	            <td><textarea class="easyui-validatebox" name="regexContent" id="regexContent" style="width:200px;height:40px;" data-options="validType:'length[0,200]'"></textarea></td>
	        </tr>
	        <tr>
	            <td><label for="remark">备注:</label></td>
	            <td><textarea class="easyui-validatebox" name="remark" style="width:200px;height:60px;" data-options="validType:'length[0,200]'"></textarea></td>
	        </tr>
	        <tr>
	        	<td><label for="messageContent">下行短信内容</td>
	        	<td><textarea class="easyui-validatebox" name="messageContent" id="messageContent" style="width:200px;height:60px;" data-options="required:true,validType:'length[0,200]'"></textarea></td>
	        </tr>
	           <tr>
	          <td><label for="needSendBackSMS">是否需要回传短信</label></td>
	             <input type="hidden" name="needSendBackSMS" id="needSendBackSMS" ></input>
		       <td>      	<label><input type="checkbox"  id="isneedSendBackSMS" > </label>          </td>
	        </tr>
	        
	         <tr>
	          <td><label for="needReply">是否回复短信</label></td>
	             <input type="hidden" name="needReply" id="needReply"></input>
		       <td>  <label><input type="checkbox"  id="isneedReply" > </label> </td>
	        </tr>
	        
	         <tr>
	          <td><label for="replyContent">回复内容</label></td>
		       <td>  <input   type="text" name="replyContent"  data-options="required:false" style="width:200px" ></input> </td>
	        </tr>
	    </table>
	</form>
	</div>
	<div region="south" border="false" style="text-align: center; padding: 5px 5px 5px 0;">
	    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="SubmitForm('/interceptInfo/save');">提交</a>
	    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm();">重置</a>
	</div>
</div>
<script>
$(function(){
	$("#needSendBackSMS").val(0);
	$("#needReply").val(0);
	$("input").bind("keyup afterpaste", function(){
		$(this).val($(this).val().replace(/\s/g,''));
	});
});

	$("#isneedSendBackSMS").on('click',function(){
		if ($("#isneedSendBackSMS").is(':checked')) {
			$("#needSendBackSMS").val(1);
		} else {
			$("#needSendBackSMS").val(0);
		}
	})
	
	$("#isneedReply").on('click',function(){
		if ($("#isneedReply").is(':checked')) {
			$("#needReply").val(1);
		} else {
			$("#needReply").val(0);
		}
	})
</script>
</body>
<script type="text/javascript" src="/resources/js/interceptInfo/add.js"></script>
</html>